package rabbitmq

import "fmt"

// 任务名
const (
	TASK_ARTICLE = "task_article"
)

type task struct {
	action func(interface{}) bool
}

// 任务列表
var TaskList = map[interface{}]task{
	TASK_ARTICLE: {
		action: taskArticle,
	},
}

func taskArticle(data interface{}) bool {
	fmt.Sprint(data)
	return true
}
